/*
 * Copyright (C) 2007 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.ebeitech.camera;

import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import android.view.WindowManager;

import com.ebeitech.doorapp.R;
import com.ebeitech.doorapp.view.BaseActivity;
import com.ebeitech.library.constant.SPConstants;
import com.ebeitech.library.util.view.StatusBarCompat;

public class QPICameraActivity extends BaseActivity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		if (savedInstanceState == null) {
			savedInstanceState = new Bundle();
		}
		savedInstanceState.putBoolean(SPConstants.IS_FIT_STATUS_BAR, false);
		super.onCreate(savedInstanceState);

		// Hide the window title.
		getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
		StatusBarCompat.compat(this, Color.TRANSPARENT);

		setContentView(R.layout.ebei_activity_media);
		findViewById(R.id.view_bottom).setVisibility(View.GONE);
		
		QPICameraFragment mCameraFragment = new QPICameraFragment();
		FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
		ft.add(R.id.media_container, mCameraFragment);
		ft.commit();
	}
}
